package 工厂方法模式;

public class Client {
    public static void main(String[] args) {
        try {
            TV tv;
            TVFactory tvFactory;
            tvFactory = (TVFactory) XMLUtilTV.getBean();
            tv = tvFactory.produceTV();
            tv.play();
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
